import java.util.Scanner;
public class sout {
    public static int add(int x,int y){
        return x+y;
    }

    public static void main(String[] args) {
        System.out.println(add(5, 6));
    }

    public static boolean is_year(int year){
        if((0 == year % 4 && 0 != year % 100) || 0 == year % 400){
            System.out.println(year + "年是闰年");
            return true;
        }else {
            System.out.println(year + "年不是闰年");
            return false;
        }
    }
    public static void main2(String[] args) {
        System.out.println(is_year(2024));
    }
    public static void main1(String[] args) {
        Scanner in=new Scanner(System.in);
        int sum=0;
        int num=0;
      while(in.hasNextInt()){
          int tmp=in.nextInt();
          sum+=tmp;
          num++;
      }
        System.out.println("sum="+sum);
        System.out.println("avg=" + sum / num);
        in.close();
    }
}
